@extends('host.common.common')
@section('title')
@yield('titler')
@stop

@section('head')

@stop

@section('body')

        <!-- top_test -->
<div id="top_test"></div>

<!-- web_logo_search -->
<div id="web_logo_search"></div>

<!-- comm_nav -->
<div id="comm_nav"></div>

<div class="com-w ">
    <div class="com-w-main">
        @yield('header')
        <div>
            @yield('content')
            <div class="clearfix" id="information_list">
                <div class="C10-info-r">
                    <div class="info-r-title clearfix ">
                        <div class="h-title f16" >行业资讯</div>
                    </div>
                    <div class="info-r-main clearfix  mb10">
                        @foreach(\App\B2BProject\Site\ArticleCategory::where('name','!=','helper')->where('name','!=','dbxx')->where('parent_id','0')->where('display_name','!=','')->take(10)->get() as $article)
                            <a href="{{ route('industry.lister',["$article->name"]) }}">
                                <div class="info-classify">
                                    {{$article->display_name}}（
                                    <span class="info-num">{{\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName("$article->name")->count()}}</span>
                                    ）
                                </div>
                            </a>
                        @endforeach
                    </div>
                </div>
                <div class="C10-info-r C10-info-r2">
                    <div class="info-r-title clearfix">
                        <div class="h-title f16">推荐资讯</div>
                    </div>
                    <div class="info-r-main clearfix">
                        <div class="clearfix">
                            <ul class="clearfix">
                                @foreach(\App\B2BProject\Site\Article::orderBy('sort', 'desc')->take(10)->get() as $article)
                                    <li>
                                        <a href="{{ route('industry.details',[\App\B2BProject\Site\ArticleCategory::where('id',$article->category->id)->first()->name,$article->id]) }}">{{$article->title}}</a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
            </div>


        </div>
        <div class="comm-paging" style="  margin-left: 330px;margin-top: 43px;"></div>
    </div>
</div>

<!-- foot_nav -->
<div id="foot_nav"></div>
<div id="bottom_main"></div>
<script type="text/javascript">
    $(function () {
        commTemplUtil.initPage();
    });
</script>
</body>
@stop


